package freejim.icu.highschoolhealthstatuspost.dao;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * licence_type: 1==身份证，2==居住证，3==护照
 * health: 1==healthy, 0==unhealthy
 * */
@Data
@Entity
@Table(name="userinfo")
public class DetailInfo{

    @Id
    private Long infoid;
    private int licence_type;
    private String licence_number;
    private String emergency_contact;
    private String emergency_call_number;

    public DetailInfo(){};
    public DetailInfo(Long infoid, int licence_type, String licence_number, String emergency_contact, String emergency_call_number) {
        this.infoid = infoid;
        this.licence_type = licence_type;
        this.licence_number = licence_number;
        this.emergency_contact = emergency_contact;
        this.emergency_call_number = emergency_call_number;
    }
}
